package com.xds.springcloud.controller;

import com.xds.springcloud.service.impl.IMessageProviderImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Bai Xu
 * @Date 2021/10/9 13:38
 * @Version 1.0
 */
@RestController
public class SendMessageController {
    @Autowired
    private IMessageProviderImpl messageProvider;
    @GetMapping("/sendMessage")
    public String sendMessage(){
      return   messageProvider.send();
    }
}
